package cn.mall.goods.domain;

import java.math.BigDecimal;
import java.util.Date;
import cn.mall.base.domain.BaseDomain;
import cn.mall.org.domain.Shop;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

/**
 * <p>
 *
 * </p>
 *
 * @author Jarvis-Smith
 * @since 2023-12-04
 */
@Data
public class Goods extends BaseDomain{

    private static final long serialVersionUID = 1L;

    /**
     * 商品id
     */
    private Long id;
    /**
     * 商品名
     */
    private String name;
    /**
     * 商品价格
     */
    private BigDecimal price;
    /**
     * 商品描述
     */
    private String description;
    /**
     * 商品图片
     */
    private String goodsImg;
    /**
     * 商品类型 1.轮博，2.评论，3.点赞
     */
    private Integer type;
    /**
     * 店铺id
     */
    private Long shopId;

    /**
     * 审核状态   0-审核驳回 1-审核通过
     */
    private Integer auditstate;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date onsaletime;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date offsaletime;
    /**
     * 状态：0下架 1上架
     */
    private Integer state;

    private Shop shop;

    private Integer maxqty;
    private Integer minqty;
    private String remarks;

    private Integer btype;
}
